VERSION = 1.27.2
PACKAGE = rpm-secnix-setup

clean:
	-find . -name '*.o' -o -name '*~' | xargs rm -f
	rm -f *.bz2
	rm -rf $(PACKAGE)-$(VERSION)
	rm -rf autom4te.cache

dist: autogen clean changelog
	find . -not -name '*.bz2' -o -not -name Makefile | cpio -pd $(PACKAGE)-$(VERSION)/
	find $(PACKAGE)-$(VERSION) -type d -name .svn|xargs rm -rf 
	rm -f $(PACKAGE)-$(VERSION)/Makefile
	rm -f $(PACKAGE)-$(VERSION)/autogen.sh
	tar cfj $(PACKAGE)-$(VERSION).tar.bz2 $(PACKAGE)-$(VERSION)
	rm -rf $(PACKAGE)-$(VERSION)

changelog:
	svn update
	svn2cl --authors=../../common/trunk/username.xml

autoclean:
	rm -f Makefile.in configure depcomp config.guess config.sub aclocal.m4 ChangeLog ltmain.sh

autogen: autoclean
	./autogen.sh

